﻿using System;
class BonusScheme
{
    static void Main()
    {
        int digit = 1;
        do
        {
            if (digit != 1)
            {
                Console.Write("The digit is NOT in requested range! Reenter: ");
            }
            else
            {
                Console.Write("Please enter digit between 1 and 9: ");
            }
            while (true)
            {
                try
                {
                    digit = int.Parse(Console.ReadLine());
                    break;
                }
                catch (Exception)
                {
                    Console.Write("Not a number. Please reenter: ");
                }
            }
        } while ((digit < 1) || (digit > 9));
        switch (digit)
        {
            case 1:
            case 2:
            case 3:
                {
                    digit = digit * 10;
                    Console.WriteLine("The multiplier is 10, and the new digit is: {0}", digit);
                    break;
                }
            case 4:
            case 5:
            case 6:
                {
                    digit = digit * 100;
                    Console.WriteLine("The multiplier is 100, and the new digit is: {0}", digit);
                    break;
                }
            case 7:
            case 8:
            case 9:
                {
                    digit = digit * 1000;
                    Console.WriteLine("The multiplier is 1000, and the new digit is: {0}", digit);
                    break;
                }
            default:
                {
                    break;
                }
        }
        Console.ReadLine();
    }
}

